import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import lazyPlugin from "vue3-lazy";

import { errorImg, loadingImg } from "@/libaray/images";
import Antd from "ant-design-vue";
import "ant-design-vue/dist/antd.css";
import Particles from "particles.vue3";

createApp(App)
  .use(store)
  .use(router)
  .use(Antd)
  .use(Particles)
  .use(lazyPlugin, {
    // 图片加载时默认图片
    loading: loadingImg,
    // 图片加载失败时默认图片
    err: errorImg,
  })
  .mount("#app");
